package com.ruoyi.department.service;

import java.io.IOException;
import java.util.List;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.department.domain.Department;
import com.ruoyi.department.domain.vo.DepartmentVO;
import com.ruoyi.disease.domain.Disease;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.multipart.MultipartFile;

/**
 * 【科室】Service接口
 * 
 * @author ruoyi
 * @date 2025-07-02
 */
public interface IDepartmentService 
{
    /**
     * 查询【请填写功能名称】
     * 
     * @param departmentId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    public Department selectDepartmentByDepartmentId(Long departmentId);

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param department 【请填写功能名称】
     * @return 【请填写功能名称】集合
     */
    public List<Department> selectDepartmentList(Department department);

    /**
     * 新增【请填写功能名称】
     * 
     * @param department 【请填写功能名称】
     * @return 结果
     */
    public int insertDepartment(Department department);

    /**
     * 修改【请填写功能名称】
     * 
     * @param department 【请填写功能名称】
     * @return 结果
     */
    public int updateDepartment(Department department);

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param departmentIds 需要删除的【请填写功能名称】主键集合
     * @return 结果
     */
    public int deleteDepartmentByDepartmentIds(Long[] departmentIds);

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param departmentId 【请填写功能名称】主键
     * @return 结果
     */
    public int deleteDepartmentByDepartmentId(Long departmentId);

    /**
     * 查询所有科室病种
     * @return
     */
    List<DepartmentVO> selectDepartment();

    /**
     * 模糊查询病种
     * @param illness
     * @return
     */
    AjaxResult getIllness(String illness);

    /**
     * 导入科室
     * @param file
     * @return
     */
    AjaxResult addFile(MultipartFile file) throws IOException;

    /**
     * 根据科室查询病种
     * @param departmentVO
     * @return
     */
    List<Disease> selectDiseaseByDepartment(DepartmentVO departmentVO);

    int selectDepartmentDiseaseList(DepartmentVO departmentVO);

    int selectDepartment1();

}
